package org.destinyshine.cricket.connector;

import org.destinyshine.cricket.connector.nio.SocketChannelConnectionHandler;
import org.destinyshine.cricket.context.ResponseMarshaller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.nio.ByteBuffer;
import java.nio.channels.Channel;

/**
 * Created by destinyliu on 2016/3/4.
 */
public class Connection {

    private Channel channel;

    private HttpServletRequest request;

    private HttpServletResponse response;

    private SocketChannelConnectionHandler requestParser;

    private ResponseMarshaller responseMarshaller;

    public Connection() {
        this.request = request;
        this.response = response;
    }

    public void recvInput(ByteBuffer buffer) {

    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public void setResponse(HttpServletResponse response) {
        this.response = response;
    }
}
